{__NOLAYOUT__}
<div toplayer="1" class="wrap-box wrap-nmd wrap-style00 " id="<?php echo $funcid;?>" summaryid="StorecardLockSummary" baseurl="<?php echo U('StorecardLockSummary/index'); ?>">
  <div class="wrap-box-info ">

    <div class="wrap-title abe-ofl">
      <div class="tit abe-fl" style="width: 450px;">存储卡加锁列表</div>
      <div class="abe-fl">
        <div class="textbox" >
          <div  id="<?php echo "$funcid"; ?>-keyword-info" class="abe-fl"<?php if($search["_showsearch"]=="show"):?>style="display:none;"<?php endif; ?>>
             <input type="text" class="pbtxt txt0" id="<?php echo $funcid;?>-keyword-input" value="<?php echo $search['_keyword']; ?>"  onKeyDown="{$funcid}_keyword_keydown(this);" placeholder=" 输入关键词进行搜索 ">
             <input type="button" value="搜索" class="btn btn-org  mrg_10 " id="<?php echo $funcid;?>-keyword-search"  default-status="1"  onclick="{$funcid}_keyword_set(); return _asr.submit('<?php echo "$funcid"; ?>', '<?php echo "$funcid"; ?>-Search', '<?php echo U("StorecardLockSummary/index?func=search&") ; ?>',''); " />
             <input id="<?php echo $funcid;?>-search-buttc" type="button" value="导出" class="btn btn-blue mrg_10 " default-status="1" onclick="return _asr.showExport('<?php echo "$funcid"; ?>', '<?php echo "$funcid"; ?>-Search', '<?php echo U("StorecardLockSummary/index?func=export&") ; ?>',<?php echo $p ?>); " />
          </div>
          <a href="javascript:void(0);" class="mrg_15 vi-blue search-show" <?php if($search["_showsearch"]=="show"):?>style="display:none;"<?php endif; ?>><i class="iconfont">&#xe673;</i>搜索扩展</a>
        </div>
      </div>
      <div class="abe-fr">
        <a href="javascript:void(0);" class="mrg_15 vi-blue search-hide" <?php if($search["_showsearch"]=="hide"):?>style="display:none;"<?php endif; ?>><i class="iconfont">&#xe673;</i>收起搜索</a>


               <a href="javascript:void(0);"  class=" vi-blue " onclick="return _asr.openLink('','<?php echo "$funcid"; ?>','刷新',1); "><i class="iconfont ">&#xe611;</i> 刷新</a>

      </div>
    </div>


    <div class="screening"  >
      <form action="<?php echo U('StorecardLockSummary/index?func=search'); ?>" id="<?php echo "$funcid"; ?>-Search" method="get">
                <input type="hidden" name="<?php echo "$funcid"; ?>-last-url" id="<?php echo "$funcid"; ?>-last-url" value="<?php echo $__last_url; ?>" />
                <input type="hidden" name="funcid" value="<?php echo "$funcid"; ?>" />
                <input type="hidden" name="pfuncid" value="<?php echo "$pfuncid"; ?>" />
                <input type="hidden" name="_searchexpand" value="<?php echo $search["_searchexpand"]; ?>" />
                <input type="hidden" name="_showsearch"   value="<?php echo $search["_showsearch"]; ?>" />
                <input type="hidden" name="_issearch" value="<?php echo $search["_issearch"]; ?>" />
                <input type="hidden" name="_keyword" value="<?php echo $search["_keyword"]; ?>" />

                <input type="hidden" name="_tab" value="<?php echo $search["_tab"]; ?>" />
                <ul class="form form-mod-new" id="<?php echo $funcid;?>-search-Info">
                  <li>
                      <div class="unit-left"> 选择库联</div>
                      <div class="unit-mid">
                          <div class="dropdown" id="{$funcid}_org_id">
                             <select class="pbsele dropdown0" name="org_id">
                                <option value="" <?php if($search['org_id'] == ''): ?> selected="selected" <?php endif;?> ></option>
                               <?php
                                  $keyvalue = table_Org();
                                  if(is_array($keyvalue)){
                                      $i = 0; $__LIST__ = $keyvalue;  ?>
                                      <?php foreach($__LIST__ as $key=>$item): ++$i; ?>
                                   <option value="<?php echo $item['id']; ?>" <?php if($item['id'] == $search['org_id']): ?> selected="selected" <?php endif;?>><?php echo charlevel($item['level']).$item['name']; ?></option>
                                      <?php endforeach; ?>
                               <?php } ?>
                             </select>
                          </div>
                          <div class="prompt" style="display:none">
                              <div class="error"><i class="iconfont">&#xe616;</i></div>
                          </div>
                      </div>
                  </li>
                  <li>
                      <div class="unit-left"> 选择客户</div>
                      <div class="unit-mid">
                          <div class="popup">
                              <input  type="text" class="pbtxt txt0" name="customer_id_name" readonly="readonly" value="<?php echo $search['customer_id_name']; ?>">
                              <button type="submit" class="txt-search" onclick="return _asr.popup('Customer','<?php echo "$funcid"; ?>','<?php echo "$funcid"; ?>-Search','Single','customer_id','customer_id_name'); " <?php if($search["customer_id_name"]!=""): ?> style="display:none"<?php endif; ?> ><i class="iconfont">&#xe60e;</i></button>
                              <button type="submit" class="txt-clear" onclick="_asr.setvaluebyname('<?php echo "$funcid"; ?>-Search','customer_id','');_asr.setvaluebyname('<?php echo "$funcid"; ?>-Search','customer_id_name','');return false;" <?php if($search["customer_id_name"]===""): ?> style="display:none"<?php endif; ?> ><i class="iconfont">&#xe616;</i></button>
                          </div>
                            <input type="hidden" name="customer_id" value="<?php echo $search['customer_id']; ?>">
                          <div class="prompt" style="display:none">
                              <div class="error"><i class="iconfont">&#xe616;</i></div>
                          </div>
                      </div>
                  </li>
                  <li>
                      <div class="unit-left"> 客户名称</div>
                      <div class="unit-mid">
                          <div class="textbox">
                              <input type="text" class="pbtxt txt0" name="customer_name"  value="<?php echo $search['customer_name']; ?>"   placeholder=" 直接进行模糊搜索 ">
                          </div>
                          <div class="prompt" style="display:none">
                              <div class="error"><i class="iconfont">&#xe616;</i></div>
                          </div>
                      </div>
                  </li>
                  <li>
                      <div class="unit-left"> 仓库编码</div>
                      <div class="unit-mid">
                          <div class="popup">
                              <input  type="text" class="pbtxt txt0" name="warehouse_code_name" readonly="readonly" value="<?php echo $search['warehouse_code_name']; ?>">
                              <button type="submit" class="txt-search" onclick="return _asr.popup('Warehouse','<?php echo "$funcid"; ?>','<?php echo "$funcid"; ?>-Search','Single','warehouse_code','warehouse_code_name'); " <?php if($search["warehouse_code_name"]!=""): ?> style="display:none"<?php endif; ?> ><i class="iconfont">&#xe60e;</i></button>
                              <button type="submit" class="txt-clear" onclick="_asr.setvaluebyname('<?php echo "$funcid"; ?>-Search','warehouse_code','');_asr.setvaluebyname('<?php echo "$funcid"; ?>-Search','warehouse_code_name','');return false;" <?php if($search["warehouse_code_name"]===""): ?> style="display:none"<?php endif; ?> ><i class="iconfont">&#xe616;</i></button>
                          </div>
                            <input type="hidden" name="warehouse_code" value="<?php echo $search['warehouse_code']; ?>">
                          <div class="prompt" style="display:none">
                              <div class="error"><i class="iconfont">&#xe616;</i></div>
                          </div>
                      </div>
                  </li>
                  <li>
                      <div class="unit-left"> 存储卡</div>
                      <div class="unit-mid">
                          <div class="textbox">
                              <input type="text" class="pbtxt txt0" name="storecard_id"  value="<?php echo $search['storecard_id']; ?>"  >
                          </div>
                          <div class="prompt" style="display:none">
                              <div class="error"><i class="iconfont">&#xe616;</i></div>
                          </div>
                      </div>
                  </li>
                  <li>
                      <div class="unit-left"> 存储卡号</div>
                      <div class="unit-mid">
                          <div class="textbox">
                              <input type="text" class="pbtxt txt0" name="storecard_no"  value="<?php echo $search['storecard_no']; ?>"   placeholder=" 输入%可进行匹配模糊搜索 ">
                          </div>
                          <div class="prompt" style="display:none">
                              <div class="error"><i class="iconfont">&#xe616;</i></div>
                          </div>
                      </div>
                  </li>
                  <li>
                      <div class="unit-left"> 存储卡类型</div>
                      <div class="unit-mid">
                          <div class="dropdown" id="{$funcid}_storecard_type">
                             <div class="selebtn">
                                <input type="hidden"  name="storecard_type" value="<?php echo $search['storecard_type']; ?>">
                                <a href="javascript:void(0);" onclick="_asr.selebtn_click(this,'');" class="<?php  echo $search['storecard_type']!=""?"":"active"; ?>">全部</a>
                           <?php $keyvalue = table_StorecardLock_storecard_type();
                              if(is_array($keyvalue)){
                               $i = 0;
                               $__LIST__ = $keyvalue;  ?>
                               <?php foreach($__LIST__ as $key=>$item): ++$i; ?>
                                 <a href="javascript:void(0);" onclick="_asr.selebtn_click(this,'<?php echo $item['id'];?>');" class="<?php  echo $search['storecard_type']!=$item['id']?"":"active"; ?>"><?php echo $item['name']; ?></a>
                               <?php if($i==2) break; ?>
                               <?php endforeach; ?>
                           <?php } ?>
                             </div>
                          </div>
                          <div class="prompt" style="display:none">
                              <div class="error"><i class="iconfont">&#xe616;</i></div>
                          </div>
                      </div>
                  </li>
                  <li>
                      <div class="unit-left"> 码单</div>
                      <div class="unit-mid">
                          <div class="textbox">
                              <input type="text" class="pbtxt txt0" name="package_id"  value="<?php echo $search['package_id']; ?>"  >
                          </div>
                          <div class="prompt" style="display:none">
                              <div class="error"><i class="iconfont">&#xe616;</i></div>
                          </div>
                      </div>
                  </li>
                  <li>
                      <div class="unit-left"> 垛号</div>
                      <div class="unit-mid">
                          <div class="textbox">
                              <input type="text" class="pbtxt txt0" name="buttress_id"  value="<?php echo $search['buttress_id']; ?>"  >
                          </div>
                          <div class="prompt" style="display:none">
                              <div class="error"><i class="iconfont">&#xe616;</i></div>
                          </div>
                      </div>
                  </li>
                  <li>
                      <div class="unit-left"> 加锁号码</div>
                      <div class="unit-mid">
                          <div class="textbox">
                              <input type="text" class="pbtxt txt0" name="order_no"  value="<?php echo $search['order_no']; ?>"   placeholder=" 输入%可进行匹配模糊搜索 ">
                          </div>
                          <div class="prompt" style="display:none">
                              <div class="error"><i class="iconfont">&#xe616;</i></div>
                          </div>
                      </div>
                  </li>
                  <li>
                      <div class="unit-left"> 加锁类型</div>
                      <div class="unit-mid">
                          <div class="textbox">
                              <input type="text" class="pbtxt txt0" name="order_type"  value="<?php echo $search['order_type']; ?>"   placeholder=" 输入%可进行匹配模糊搜索 ">
                          </div>
                          <div class="prompt" style="display:none">
                              <div class="error"><i class="iconfont">&#xe616;</i></div>
                          </div>
                      </div>
                  </li>
                  <li>
                      <div class="unit-left"> 加锁日期</div>
                      <div class="unit-mid">
                          <div class="calendar">
                              <input type="text" class="pbtxt calendar1" name="order_date"  value= "<?php echo system_format("D", $search["order_date"],0); ?>"  >
                              <em class="space-line">-</em>
                              <input type="text" class="pbtxt calendar1" name="order_date2" value="<?php echo $search['order_date2']; ?>"  >
                          </div>
                          <div class="prompt" style="display:none">
                              <div class="error"><i class="iconfont">&#xe616;</i></div>
                          </div>
                      </div>
                  </li>
                  <li>
                      <div class="unit-left"> 接收方</div>
                      <div class="unit-mid">
                          <div class="textbox">
                              <input type="text" class="pbtxt txt0" name="buyer_id"  value="<?php echo $search['buyer_id']; ?>"  >
                          </div>
                          <div class="prompt" style="display:none">
                              <div class="error"><i class="iconfont">&#xe616;</i></div>
                          </div>
                      </div>
                  </li>
                  <li>
                      <div class="unit-left"> 接收方</div>
                      <div class="unit-mid">
                          <div class="textbox">
                              <input type="text" class="pbtxt txt0" name="buyer_name"  value="<?php echo $search['buyer_name']; ?>"   placeholder=" 直接进行模糊搜索 ">
                          </div>
                          <div class="prompt" style="display:none">
                              <div class="error"><i class="iconfont">&#xe616;</i></div>
                          </div>
                      </div>
                  </li>
                  <li>
                      <div class="unit-left"> 锁重量</div>
                      <div class="unit-mid">
                          <div class="textbox">
                              <input type="text" class="pbtxt txt1" name="lock_weight"  value="<?php echo $search['lock_weight']; ?>"  >
                              <em class="space-line">-</em>
                              <input type="text" class="pbtxt txt1" name="lock_weight2" value="<?php echo $search['lock_weight2']; ?>"  >
                          </div>
                          <div class="prompt" style="display:none">
                              <div class="error"><i class="iconfont">&#xe616;</i></div>
                          </div>
                      </div>
                  </li>
                  <li>
                      <div class="unit-left"> 锁数量/件</div>
                      <div class="unit-mid">
                          <div class="textbox">
                              <input type="text" class="pbtxt txt1" name="lock_qty"  value="<?php echo $search['lock_qty']; ?>"  >
                              <em class="space-line">-</em>
                              <input type="text" class="pbtxt txt1" name="lock_qty2" value="<?php echo $search['lock_qty2']; ?>"  >
                          </div>
                          <div class="prompt" style="display:none">
                              <div class="error"><i class="iconfont">&#xe616;</i></div>
                          </div>
                      </div>
                  </li>
                </ul>
                <ul class="form form-mod-new split" style="<?php if($search["_searchexpand"]!="1"): echo "display:none"; endif;  ?>">
                  <li>
                      <div class="unit-left"> 锁散件</div>
                      <div class="unit-mid">
                          <div class="textbox">
                              <input type="text" class="pbtxt txt1" name="lock_bulkcargo"  value="<?php echo $search['lock_bulkcargo']; ?>"  >
                              <em class="space-line">-</em>
                              <input type="text" class="pbtxt txt1" name="lock_bulkcargo2" value="<?php echo $search['lock_bulkcargo2']; ?>"  >
                          </div>
                          <div class="prompt" style="display:none">
                              <div class="error"><i class="iconfont">&#xe616;</i></div>
                          </div>
                      </div>
                  </li>
                  <li>
                      <div class="unit-left"> 合计锁重量</div>
                      <div class="unit-mid">
                          <div class="textbox">
                              <input type="text" class="pbtxt txt1" name="storelock_weight"  value="<?php echo $search['storelock_weight']; ?>"  >
                              <em class="space-line">-</em>
                              <input type="text" class="pbtxt txt1" name="storelock_weight2" value="<?php echo $search['storelock_weight2']; ?>"  >
                          </div>
                          <div class="prompt" style="display:none">
                              <div class="error"><i class="iconfont">&#xe616;</i></div>
                          </div>
                      </div>
                  </li>
                  <li>
                      <div class="unit-left"> 合计锁数量/件</div>
                      <div class="unit-mid">
                          <div class="textbox">
                              <input type="text" class="pbtxt txt1" name="storelock_qty"  value="<?php echo $search['storelock_qty']; ?>"  >
                              <em class="space-line">-</em>
                              <input type="text" class="pbtxt txt1" name="storelock_qty2" value="<?php echo $search['storelock_qty2']; ?>"  >
                          </div>
                          <div class="prompt" style="display:none">
                              <div class="error"><i class="iconfont">&#xe616;</i></div>
                          </div>
                      </div>
                  </li>
                  <li>
                      <div class="unit-left"> 合计锁散件</div>
                      <div class="unit-mid">
                          <div class="textbox">
                              <input type="text" class="pbtxt txt1" name="storelock_bulkcargo"  value="<?php echo $search['storelock_bulkcargo']; ?>"  >
                              <em class="space-line">-</em>
                              <input type="text" class="pbtxt txt1" name="storelock_bulkcargo2" value="<?php echo $search['storelock_bulkcargo2']; ?>"  >
                          </div>
                          <div class="prompt" style="display:none">
                              <div class="error"><i class="iconfont">&#xe616;</i></div>
                          </div>
                      </div>
                  </li>
                  <li>
                      <div class="unit-left"> 库存重量</div>
                      <div class="unit-mid">
                          <div class="textbox">
                              <input type="text" class="pbtxt txt1" name="store_weight"  value="<?php echo $search['store_weight']; ?>"  >
                              <em class="space-line">-</em>
                              <input type="text" class="pbtxt txt1" name="store_weight2" value="<?php echo $search['store_weight2']; ?>"  >
                          </div>
                          <div class="prompt" style="display:none">
                              <div class="error"><i class="iconfont">&#xe616;</i></div>
                          </div>
                      </div>
                  </li>
                  <li>
                      <div class="unit-left"> 库存数量/件</div>
                      <div class="unit-mid">
                          <div class="textbox">
                              <input type="text" class="pbtxt txt1" name="store_qty"  value="<?php echo $search['store_qty']; ?>"  >
                              <em class="space-line">-</em>
                              <input type="text" class="pbtxt txt1" name="store_qty2" value="<?php echo $search['store_qty2']; ?>"  >
                          </div>
                          <div class="prompt" style="display:none">
                              <div class="error"><i class="iconfont">&#xe616;</i></div>
                          </div>
                      </div>
                  </li>
                  <li>
                      <div class="unit-left"> 库存散件</div>
                      <div class="unit-mid">
                          <div class="textbox">
                              <input type="text" class="pbtxt txt1" name="store_bulkcargo"  value="<?php echo $search['store_bulkcargo']; ?>"  >
                              <em class="space-line">-</em>
                              <input type="text" class="pbtxt txt1" name="store_bulkcargo2" value="<?php echo $search['store_bulkcargo2']; ?>"  >
                          </div>
                          <div class="prompt" style="display:none">
                              <div class="error"><i class="iconfont">&#xe616;</i></div>
                          </div>
                      </div>
                  </li>
                  <li>
                      <div class="unit-left"> 释放人员</div>
                      <div class="unit-mid">
                          <div class="textbox">
                              <input type="text" class="pbtxt txt0" name="release_user"  value="<?php echo $search['release_user']; ?>"   placeholder=" 输入%可进行匹配模糊搜索 ">
                          </div>
                          <div class="prompt" style="display:none">
                              <div class="error"><i class="iconfont">&#xe616;</i></div>
                          </div>
                      </div>
                  </li>
                  <li>
                      <div class="unit-left"> 释放时间</div>
                      <div class="unit-mid">
                          <div class="calendar">
                              <input type="text" class="pbtxt calendar1" name="release_time"  value= "<?php echo system_format("DT", $search["release_time"],0); ?>"  >
                              <em class="space-line">-</em>
                              <input type="text" class="pbtxt calendar1" name="release_time2" value="<?php echo $search['release_time2']; ?>"  >
                          </div>
                          <div class="prompt" style="display:none">
                              <div class="error"><i class="iconfont">&#xe616;</i></div>
                          </div>
                      </div>
                  </li>
                  <li>
                      <div class="unit-left"> 创建时间</div>
                      <div class="unit-mid">
                          <div class="calendar">
                              <input type="text" class="pbtxt calendar1" name="create_time"  value= "<?php echo system_format("DT", $search["create_time"],0); ?>"  >
                              <em class="space-line">-</em>
                              <input type="text" class="pbtxt calendar1" name="create_time2" value="<?php echo $search['create_time2']; ?>"  >
                          </div>
                          <div class="prompt" style="display:none">
                              <div class="error"><i class="iconfont">&#xe616;</i></div>
                          </div>
                      </div>
                  </li>
                </ul>
                  <!--表单-->
                  <div class="sub-box sub-box3">
                    <div class="pbtab abe-fl" >
                      <a href="#" onclick="return _asr.tabsheet('<?php echo $funcid;?>', '<?php echo "$funcid"; ?>-Search', 'all');" <?php if($search['_tab'] == 'all'): ?> class="current"<?php endif;?>>全部</a>
                    </div>
                    <p class="annotation vi-red"></p>
                    <div class="sub-box-in abe-fr"  id="<?php echo $funcid;?>-search-butt">


          <?php if (isset($rights['search']) && $rights['search']): ?>
               <input type="button" value="搜索" class="btn btn-org  mrg_10 " onclick="return _asr.submit('<?php echo "$funcid"; ?>', '<?php echo "$funcid"; ?>-Search', '<?php echo U("StorecardLockSummary/index?func=search&") ; ?>',''); " />
          <?php endif; ?>



               <input type="button" value="清除" class="btn btn-blue mrg_10 " onclick="return <?php echo "$funcid"; ?>_clearsearch('<?php echo "$funcid"; ?>-Search');" />



          <?php if (isset($rights['export']) && $rights['export']): ?>
               <input type="button" value="导出" class="btn btn-blue mrg_10 " onclick="return _asr.showExport('<?php echo "$funcid"; ?>', '<?php echo "$funcid"; ?>-Search', '<?php echo U("StorecardLockSummary/index?func=export&") ; ?>',<?php echo $p ?>); " />
          <?php endif; ?>

                    <em class="pdr_20"></em>
                    <button class="btn btn-xs hid-btn" type="button" onclick="return _asr.showSearch(this);">展开选项<i class="iconfont">&#xe612;</i></button>
                    <a href="javascript:void(0);" class="table-set <?php echo count($colshow)>0?"vi-blue":"abe-gray3"; ?>"  onclick="return _asr.popupFun('<?php echo U("/Summary/StorecardLockSummary/index?func=columnsetting&") ; ?>','<?php echo filterFuncId("/StorecardLockSummary/column","");?>');  " ><em class="iconfont abe-ft14 mrg_5">&#xe60a;</em>设置</a>
                    </div>
                  </div>
      </form>
    </div>



  <div class="wrap-nmd-box">
    <div class="wrap-master ">

      <div class="list-scroll">
        <div class="table-box">
          <div class="table-in">
            <form id="<?php echo "$funcid"; ?>-Result"  action="<?php U('StorecardLockSummary/op'); ?>" method="post">
              <table border="0" cellspacing="0" cellpadding="0" class="pub-table ta-tr-hover">
                <colgroup>
                           <col style="width: 40px ;">   <!--  -->
          <!-- 序号        <col style="width: 40px ;">   -->
                           <col style="width: 60px ; <?php if(isset($colshow[""]) && $colshow[""]=="0"): ?>display:none;<?php endif; ?> ">  <!-- 操作 -->
                           <col style="width: 80px ; <?php if(isset($colshow["org_id"]) && $colshow["org_id"]=="0"): ?>display:none;<?php endif; ?> ">  <!-- 库联 -->
                           <col style="width: 100px ; <?php if(isset($colshow["customer_name"]) && $colshow["customer_name"]=="0"): ?>display:none;<?php endif; ?> ">  <!-- 客户名称 -->
                           <col style="width: 80px ; <?php if(isset($colshow["warehouse_code"]) && $colshow["warehouse_code"]=="0"): ?>display:none;<?php endif; ?> ">  <!-- 仓库编码 -->
                           <col style="width: 80px ; <?php if(isset($colshow["storecard_id"]) && $colshow["storecard_id"]=="0"): ?>display:none;<?php endif; ?> ">  <!-- 存储卡 -->
                           <col style="width: 80px ; <?php if(isset($colshow["storecard_no"]) && $colshow["storecard_no"]=="0"): ?>display:none;<?php endif; ?> ">  <!-- 存储卡号 -->
                           <col style="width: 80px ; <?php if(isset($colshow["storecard_type"]) && $colshow["storecard_type"]=="0"): ?>display:none;<?php endif; ?> ">  <!-- 存储卡类型 -->
                           <col style="width: 80px ; <?php if(isset($colshow["package_id"]) && $colshow["package_id"]=="0"): ?>display:none;<?php endif; ?> ">  <!-- 码单 -->
                           <col style="width: 80px ; <?php if(isset($colshow["buttress_id"]) && $colshow["buttress_id"]=="0"): ?>display:none;<?php endif; ?> ">  <!-- 垛号 -->
                           <col style="width: 80px ; <?php if(isset($colshow["order_no"]) && $colshow["order_no"]=="0"): ?>display:none;<?php endif; ?> ">  <!-- 加锁号码 -->
                           <col style="width: 80px ; <?php if(isset($colshow["order_type"]) && $colshow["order_type"]=="0"): ?>display:none;<?php endif; ?> ">  <!-- 加锁类型 -->
                           <col style="width: 80px ; <?php if(isset($colshow["order_date"]) && $colshow["order_date"]=="0"): ?>display:none;<?php endif; ?> ">  <!-- 加锁日期 -->
                           <col style="width: 80px ; <?php if(isset($colshow["buyer_id"]) && $colshow["buyer_id"]=="0"): ?>display:none;<?php endif; ?> ">  <!-- 接收方 -->
                           <col style="width: 100px ; <?php if(isset($colshow["buyer_name"]) && $colshow["buyer_name"]=="0"): ?>display:none;<?php endif; ?> ">  <!-- 接收方 -->
                           <col style="width: 80px ; <?php if(isset($colshow["lock_weight"]) && $colshow["lock_weight"]=="0"): ?>display:none;<?php endif; ?> ">  <!-- 锁重量 -->
                           <col style="width: 80px ; <?php if(isset($colshow["lock_qty"]) && $colshow["lock_qty"]=="0"): ?>display:none;<?php endif; ?> ">  <!-- 锁数量 -->
                           <col style="width: 80px ; <?php if(isset($colshow["lock_bulkcargo"]) && $colshow["lock_bulkcargo"]=="0"): ?>display:none;<?php endif; ?> ">  <!-- 锁散件 -->
                           <col style="width: 80px ; <?php if(isset($colshow["storelock_weight"]) && $colshow["storelock_weight"]=="0"): ?>display:none;<?php endif; ?> ">  <!-- 合计锁重量 -->
                           <col style="width: 80px ; <?php if(isset($colshow["storelock_qty"]) && $colshow["storelock_qty"]=="0"): ?>display:none;<?php endif; ?> ">  <!-- 合计锁数量 -->
                           <col style="width: 80px ; <?php if(isset($colshow["storelock_bulkcargo"]) && $colshow["storelock_bulkcargo"]=="0"): ?>display:none;<?php endif; ?> ">  <!-- 合计锁散件 -->
                           <col style="width: 80px ; <?php if(isset($colshow["store_weight"]) && $colshow["store_weight"]=="0"): ?>display:none;<?php endif; ?> ">  <!-- 库存重量 -->
                           <col style="width: 80px ; <?php if(isset($colshow["store_qty"]) && $colshow["store_qty"]=="0"): ?>display:none;<?php endif; ?> ">  <!-- 库存数量 -->
                           <col style="width: 80px ; <?php if(isset($colshow["store_bulkcargo"]) && $colshow["store_bulkcargo"]=="0"): ?>display:none;<?php endif; ?> ">  <!-- 库存散件 -->
                           <col style="width: 80px ; <?php if(isset($colshow["release_user"]) && $colshow["release_user"]=="0"): ?>display:none;<?php endif; ?> ">  <!-- 释放人员 -->
                           <col style="width: 150px ; <?php if(isset($colshow["release_time"]) && $colshow["release_time"]=="0"): ?>display:none;<?php endif; ?> ">  <!-- 释放时间 -->
                           <col style="width: 150px ; <?php if(isset($colshow["create_time"]) && $colshow["create_time"]=="0"): ?>display:none;<?php endif; ?> ">  <!-- 创建时间 -->
                           <col style="width:auto" >
                </colgroup>
                <tbody>
                  <tr>
                          <th><input type="checkbox"  onclick="_asr.selectAll(this);"> &nbsp;#</th>
          <!-- 序号       <th>序号</th>   -->
                          <th class="abe-txtl">操作</th>
                          <th <?php if(isset($colshow["org_id"]) && $colshow["org_id"]=="0"): ?> style="display:none" <?php endif; ?>>库联</th>
                          <th <?php if(isset($colshow["customer_name"]) && $colshow["customer_name"]=="0"): ?> style="display:none" <?php endif; ?> class="abe-txtl">客户名称</th>
                          <th <?php if(isset($colshow["warehouse_code"]) && $colshow["warehouse_code"]=="0"): ?> style="display:none" <?php endif; ?> class="abe-txtl">仓库编码</th>
                          <th <?php if(isset($colshow["storecard_id"]) && $colshow["storecard_id"]=="0"): ?> style="display:none" <?php endif; ?>>存储卡</th>
                          <th <?php if(isset($colshow["storecard_no"]) && $colshow["storecard_no"]=="0"): ?> style="display:none" <?php endif; ?> class="abe-txtl">存储卡号</th>
                          <th <?php if(isset($colshow["storecard_type"]) && $colshow["storecard_type"]=="0"): ?> style="display:none" <?php endif; ?>>存储卡类型</th>
                          <th <?php if(isset($colshow["package_id"]) && $colshow["package_id"]=="0"): ?> style="display:none" <?php endif; ?>>码单</th>
                          <th <?php if(isset($colshow["buttress_id"]) && $colshow["buttress_id"]=="0"): ?> style="display:none" <?php endif; ?>>垛号</th>
                          <th <?php if(isset($colshow["order_no"]) && $colshow["order_no"]=="0"): ?> style="display:none" <?php endif; ?> class="abe-txtl">加锁号码</th>
                          <th <?php if(isset($colshow["order_type"]) && $colshow["order_type"]=="0"): ?> style="display:none" <?php endif; ?>>加锁类型</th>
                          <th <?php if(isset($colshow["order_date"]) && $colshow["order_date"]=="0"): ?> style="display:none" <?php endif; ?>>加锁日期</th>
                          <th <?php if(isset($colshow["buyer_id"]) && $colshow["buyer_id"]=="0"): ?> style="display:none" <?php endif; ?>>接收方</th>
                          <th <?php if(isset($colshow["buyer_name"]) && $colshow["buyer_name"]=="0"): ?> style="display:none" <?php endif; ?> class="abe-txtl">接收方</th>
                          <th <?php if(isset($colshow["lock_weight"]) && $colshow["lock_weight"]=="0"): ?> style="display:none" <?php endif; ?> class="abe-txtr">锁重量</th>
                          <th <?php if(isset($colshow["lock_qty"]) && $colshow["lock_qty"]=="0"): ?> style="display:none" <?php endif; ?> class="abe-txtr">锁数量</th>
                          <th <?php if(isset($colshow["lock_bulkcargo"]) && $colshow["lock_bulkcargo"]=="0"): ?> style="display:none" <?php endif; ?> class="abe-txtr">锁散件</th>
                          <th <?php if(isset($colshow["storelock_weight"]) && $colshow["storelock_weight"]=="0"): ?> style="display:none" <?php endif; ?> class="abe-txtr">合计锁重量</th>
                          <th <?php if(isset($colshow["storelock_qty"]) && $colshow["storelock_qty"]=="0"): ?> style="display:none" <?php endif; ?> class="abe-txtr">合计锁数量</th>
                          <th <?php if(isset($colshow["storelock_bulkcargo"]) && $colshow["storelock_bulkcargo"]=="0"): ?> style="display:none" <?php endif; ?> class="abe-txtr">合计锁散件</th>
                          <th <?php if(isset($colshow["store_weight"]) && $colshow["store_weight"]=="0"): ?> style="display:none" <?php endif; ?> class="abe-txtr">库存重量</th>
                          <th <?php if(isset($colshow["store_qty"]) && $colshow["store_qty"]=="0"): ?> style="display:none" <?php endif; ?> class="abe-txtr">库存数量</th>
                          <th <?php if(isset($colshow["store_bulkcargo"]) && $colshow["store_bulkcargo"]=="0"): ?> style="display:none" <?php endif; ?> class="abe-txtr">库存散件</th>
                          <th <?php if(isset($colshow["release_user"]) && $colshow["release_user"]=="0"): ?> style="display:none" <?php endif; ?>>释放人员</th>
                          <th <?php if(isset($colshow["release_time"]) && $colshow["release_time"]=="0"): ?> style="display:none" <?php endif; ?>>释放时间</th>
                          <th <?php if(isset($colshow["create_time"]) && $colshow["create_time"]=="0"): ?> style="display:none" <?php endif; ?>>创建时间</th>
                           <th></th >
                        </tr>
                        <?php $parent_trNo=""; $group=""; $groupId="";?>
                        <?php if(is_array($list)):
                          $i = 0;
                          $__LIST__ = $list;
                          if( count($__LIST__) == 0) :
                              echo "";
                          else:
                              foreach($__LIST__ as $key=>$master): $mod = ($i % 2 );++$i; ?>
                                  <?php $seqNo = $i + ($page_size * ($p - 1)); ?>

                                  <?php $trColor = $mod=="1"?"even":"odd"; ?>
                                  <?php $trNo=($parent_trNo?$parent_trNo.".":"").$seqNo; ?>
                                  <tr class="<?php echo $trColor; ?>" group="<?php echo $group; ?>" group-id="<?php echo $groupId; ?>">
                                  <!-- 选择 -->
                                  <td class="abe-txtl"><input type="checkbox" name="Key[]" data-type="select" onclick="_asr.selectMulit(this);" value="<?php echo $master['id'] ;?>">&nbsp;<?php echo $trNo; ?></td>
                                  <!-- 序号 -->
                                  <td  class=" abe-txtl ">



          <?php if (isset($rights['master_view']) && $rights['master_view']): ?>
               <a href="javascript:void(0);"  class=" vi-blue vi-blue " onclick="return _asr.openLink('<?php echo U("/Home/StorecardLock/index?func=view&id=$master[id]") ; ?>', '<?php echo filterFuncId(U("/Home/StorecardLock/index?func=view&id=$master[id]"),"");?>' , '<?php echo tabTitle("存储卡加锁","$master[order_no]","RIGHT","8") ; ?>' ,0); "><i class="iconfont abe-ft18">&#xe62e;</i></a>
          <?php endif; ?></td>


                                  <td style=" <?php if(isset($colshow["org_id"]) && $colshow["org_id"]=="0"): ?>display:none<?php endif; ?> " ><?php echo get_table_Org_byID("$master[org_id]","name","") ; ?></td>
                                  <td style=" <?php if(isset($colshow["customer_name"]) && $colshow["customer_name"]=="0"): ?>display:none<?php endif; ?> " class=" abe-txtl "><?php echo $master["customer_name"] ; ?></td>
                                  <td style=" <?php if(isset($colshow["warehouse_code"]) && $colshow["warehouse_code"]=="0"): ?>display:none<?php endif; ?> " class=" abe-txtl "><?php echo get_table_Warehouse("$master[warehouse_code]","name","") ; ?></td>
                                  <td style=" <?php if(isset($colshow["storecard_id"]) && $colshow["storecard_id"]=="0"): ?>display:none<?php endif; ?> " ><?php echo $master["storecard_id"] ; ?></td>
                                  <td style=" <?php if(isset($colshow["storecard_no"]) && $colshow["storecard_no"]=="0"): ?>display:none<?php endif; ?> " class=" abe-txtl "><?php echo $master["storecard_no"] ; ?></td>
                                  <td style=" <?php if(isset($colshow["storecard_type"]) && $colshow["storecard_type"]=="0"): ?>display:none<?php endif; ?> " ><?php echo get_table_StorecardLock_storecard_type("$master[storecard_type]","name","") ; ?></td>
                                  <td style=" <?php if(isset($colshow["package_id"]) && $colshow["package_id"]=="0"): ?>display:none<?php endif; ?> " ><?php echo $master["package_id"] ; ?></td>
                                  <td style=" <?php if(isset($colshow["buttress_id"]) && $colshow["buttress_id"]=="0"): ?>display:none<?php endif; ?> " ><?php echo $master["buttress_id"] ; ?></td>
                                  <td style=" <?php if(isset($colshow["order_no"]) && $colshow["order_no"]=="0"): ?>display:none<?php endif; ?> " class=" abe-txtl "><a href="javascript:void(0);" class="vi-blue"  onclick="return _asr.openLink('<?php echo orderurl("$master[order_no]"); ?>','<?php echo filterFuncId( orderurl("$master[order_no]") ,"");?>', '查看详情' ,0); " ><?php echo $master["order_no"] ; ?></a></td>
                                  <td style=" <?php if(isset($colshow["order_type"]) && $colshow["order_type"]=="0"): ?>display:none<?php endif; ?> " ><?php echo $master["order_type"] ; ?></td>
                                  <td style=" <?php if(isset($colshow["order_date"]) && $colshow["order_date"]=="0"): ?>display:none<?php endif; ?> " ><?php echo system_format("D", $master["order_date"],1) ; ?></td>
                                  <td style=" <?php if(isset($colshow["buyer_id"]) && $colshow["buyer_id"]=="0"): ?>display:none<?php endif; ?> " ><?php echo $master["buyer_id"] ; ?></td>
                                  <td style=" <?php if(isset($colshow["buyer_name"]) && $colshow["buyer_name"]=="0"): ?>display:none<?php endif; ?> " class=" abe-txtl "><?php echo $master["buyer_name"] ; ?></td>
                                  <td style=" <?php if(isset($colshow["lock_weight"]) && $colshow["lock_weight"]=="0"): ?>display:none<?php endif; ?> " class=" abe-txtr <?php if ($master['lock_weight']<0): ?> abe-red <?php endif; ?> "><?php echo system_format("F33", $master["lock_weight"],1) ; ?></td>
                                  <td style=" <?php if(isset($colshow["lock_qty"]) && $colshow["lock_qty"]=="0"): ?>display:none<?php endif; ?> " class=" abe-txtr <?php if ($master['lock_qty']<0): ?> abe-red <?php endif; ?> "><?php echo system_format("N3", $master["lock_qty"],1) ; ?></td>
                                  <td style=" <?php if(isset($colshow["lock_bulkcargo"]) && $colshow["lock_bulkcargo"]=="0"): ?>display:none<?php endif; ?> " class=" abe-txtr <?php if ($master['lock_bulkcargo']<0): ?> abe-red <?php endif; ?> "><?php echo system_format("N3", $master["lock_bulkcargo"],1) ; ?></td>
                                  <td style=" <?php if(isset($colshow["storelock_weight"]) && $colshow["storelock_weight"]=="0"): ?>display:none<?php endif; ?> " class=" abe-txtr <?php if ($master['storelock_weight']<0): ?> abe-red <?php endif; ?> "><?php echo system_format("F33", $master["storelock_weight"],1) ; ?></td>
                                  <td style=" <?php if(isset($colshow["storelock_qty"]) && $colshow["storelock_qty"]=="0"): ?>display:none<?php endif; ?> " class=" abe-txtr <?php if ($master['storelock_qty']<0): ?> abe-red <?php endif; ?> "><?php echo system_format("N3", $master["storelock_qty"],1) ; ?></td>
                                  <td style=" <?php if(isset($colshow["storelock_bulkcargo"]) && $colshow["storelock_bulkcargo"]=="0"): ?>display:none<?php endif; ?> " class=" abe-txtr <?php if ($master['storelock_bulkcargo']<0): ?> abe-red <?php endif; ?> "><?php echo system_format("N3", $master["storelock_bulkcargo"],1) ; ?></td>
                                  <td style=" <?php if(isset($colshow["store_weight"]) && $colshow["store_weight"]=="0"): ?>display:none<?php endif; ?> " class=" abe-txtr <?php if ($master['store_weight']<0): ?> abe-red <?php endif; ?> "><?php echo system_format("F33", $master["store_weight"],1) ; ?></td>
                                  <td style=" <?php if(isset($colshow["store_qty"]) && $colshow["store_qty"]=="0"): ?>display:none<?php endif; ?> " class=" abe-txtr <?php if ($master['store_qty']<0): ?> abe-red <?php endif; ?> "><?php echo system_format("N3", $master["store_qty"],1) ; ?></td>
                                  <td style=" <?php if(isset($colshow["store_bulkcargo"]) && $colshow["store_bulkcargo"]=="0"): ?>display:none<?php endif; ?> " class=" abe-txtr <?php if ($master['store_bulkcargo']<0): ?> abe-red <?php endif; ?> "><?php echo system_format("N3", $master["store_bulkcargo"],1) ; ?></td>
                                  <td style=" <?php if(isset($colshow["release_user"]) && $colshow["release_user"]=="0"): ?>display:none<?php endif; ?> " ><?php echo $master["release_user"] ; ?></td>
                                  <td style=" <?php if(isset($colshow["release_time"]) && $colshow["release_time"]=="0"): ?>display:none<?php endif; ?> " ><?php echo system_format("DT", $master["release_time"],1) ; ?></td>
                                  <td style=" <?php if(isset($colshow["create_time"]) && $colshow["create_time"]=="0"): ?>display:none<?php endif; ?> " ><?php echo system_format("DT", $master["create_time"],1) ; ?></td>
                                 <td></td>
                              </tr>
                              <?php endforeach; ?>
                              <?php
                          endif;
                      else:
                          echo ""
                      ;endif; ?>
                </tbody>
              </table>
            </form>
          </div>
        <?php if($search["_execsearch"] == "0"): ?>
          <div style="background: #f2f2f3; color: #999; text-align: center; font-size: 14px; padding: 20px 0; margin-top:10px;">搜索后显示数据</div>
        <?php endif; ?>
        </div>



        <div class="data-oper" >
          <?php echo $page; ?>
        </div>

      </div>


   </div>


  </div>

  </div>
</div>

    <script>

        function <?php echo $funcid; ?>_chooseDate(o) {
            if($('.date').length>0)
                pickmeup('.date').destroy();
            $('.date').removeClass('date')
            $(o).addClass('date');
            pickmeup('.date', {
                format  : 'Y-m-d',
                date : $(o).val(),
                hide_on_select : true,
                locale : 'zh'
            }).show();
        }

        $('.calendar0,.calendar1').on('click',function(){
            <?php echo $funcid; ?>_chooseDate(this)
        });


        function <?php echo $funcid; ?>_keyword_set(){
            _frm = "<?php echo $funcid;?>-Search";
            var _this = $("#<?php echo $funcid;?>-keyword-input");
            _asr.setvaluebyname(_frm,"_keyword",_this.val());
            return true;
        }

        function {$funcid}_keyword_keydown(obj){
            var e = window.event || arguments.callee.caller.arguments[0];
            if (e && e.keyCode == 13 ) {
                  <?php echo $funcid; ?>_keyword_set();
                $("#{$funcid}-keyword-search").click();
            }
        }
        /***************************************************************************************/
        /* 前台页面初始化                                                                      */
        /***************************************************************************************/
        function <?php echo $funcid; ?>_init(_id){
            var _searchInfo, searchbutt, _searchshow,_searchhide,_searchkeyword;
            _searchhide = $("#<?php echo $funcid;?> .search-hide");
            _searchshow = $("#<?php echo $funcid;?> .search-show");
            _searchInfo = $("#<?php echo $funcid;?>-search-Info");
            _searchbutt = $("#<?php echo $funcid;?>-search-butt");
            _searchkeyword = $("#<?php echo $funcid;?>-keyword-info");
            _frm = "<?php echo $funcid;?>-Search";
            _searchshow.bind("click", function() {
                _searchInfo.show();
                _searchbutt.show();
                _searchshow.hide();
                _searchhide.show();
                _searchkeyword.hide();
                _asr.setvaluebyname(_frm,"_showsearch","show");
            });
            _searchhide.bind("click", function() {
                _searchInfo.hide();
                _searchbutt.hide();
                _searchshow.show();
                _searchhide.hide();
                _searchkeyword.show();
                _asr.setvaluebyname(_frm,"_showsearch","hide");
            });

        <?php if($search["_showsearch"]=="show"):?>
            _searchshow.click();
        <?php else: ?>
            _searchhide.click();
        <?php endif; ?>

            return false;
        }


        /***************************************************************************************/
        /* 前台页面清除                                                                      */
        /***************************************************************************************/
        function <?php echo $funcid; ?>_clearsearch(_frm){
            _asr.setvaluebyname(_frm,"org_id","");
            _asr.setvaluebyname(_frm,"customer_id_name","");
            _asr.setvaluebyname(_frm,"customer_id","");
            _asr.setvaluebyname(_frm,"customer_name","");
            _asr.setvaluebyname(_frm,"warehouse_code_name","");
            _asr.setvaluebyname(_frm,"warehouse_code","");
            _asr.setvaluebyname(_frm,"storecard_id","");
            _asr.setvaluebyname(_frm,"storecard_no","");
            _asr.setvaluebyname(_frm,"storecard_type","");
            _asr.setvaluebyname(_frm,"package_id","");
            _asr.setvaluebyname(_frm,"buttress_id","");
            _asr.setvaluebyname(_frm,"order_no","");
            _asr.setvaluebyname(_frm,"order_type","");
            _asr.setvaluebyname(_frm,"order_date","");
            _asr.setvaluebyname(_frm,"order_date2","");
            _asr.setvaluebyname(_frm,"buyer_id","");
            _asr.setvaluebyname(_frm,"buyer_name","");
            _asr.setvaluebyname(_frm,"lock_weight","");
            _asr.setvaluebyname(_frm,"lock_weight2","");
            _asr.setvaluebyname(_frm,"lock_qty","");
            _asr.setvaluebyname(_frm,"lock_qty2","");
            _asr.setvaluebyname(_frm,"lock_bulkcargo","");
            _asr.setvaluebyname(_frm,"lock_bulkcargo2","");
            _asr.setvaluebyname(_frm,"storelock_weight","");
            _asr.setvaluebyname(_frm,"storelock_weight2","");
            _asr.setvaluebyname(_frm,"storelock_qty","");
            _asr.setvaluebyname(_frm,"storelock_qty2","");
            _asr.setvaluebyname(_frm,"storelock_bulkcargo","");
            _asr.setvaluebyname(_frm,"storelock_bulkcargo2","");
            _asr.setvaluebyname(_frm,"store_weight","");
            _asr.setvaluebyname(_frm,"store_weight2","");
            _asr.setvaluebyname(_frm,"store_qty","");
            _asr.setvaluebyname(_frm,"store_qty2","");
            _asr.setvaluebyname(_frm,"store_bulkcargo","");
            _asr.setvaluebyname(_frm,"store_bulkcargo2","");
            _asr.setvaluebyname(_frm,"release_user","");
            _asr.setvaluebyname(_frm,"release_time","");
            _asr.setvaluebyname(_frm,"release_time2","");
            _asr.setvaluebyname(_frm,"create_time","");
            _asr.setvaluebyname(_frm,"create_time2","");

          $("#{$funcid}").find(".selebtn").each(function(){
              $(this).find("a:eq(0)").click();
            });

          $("#{$funcid} .city-tags-new .sele-remove").click();
        }

        /***************************************************************************************/
        /* 后台返回 callback                                                                 */
        /***************************************************************************************/
        function <?php echo $funcid; ?>_callback(_json){
        // 返回类型 _json.action
        // 返回数据 _json.data
            switch(_json.action){
            default:
                alert("no code for callback action '" + _json.action + "'");
                break;
            }
            return ;
        }

        /***************************************************************************************/
        /* 后台返回 dealAlert                                                            */
        /***************************************************************************************/
        function <?php echo "$funcid"; ?>_dealAlert(l){
            var node=$('#'+l.getAlertId());

            var funcid="<?php echo "$funcid"; ?>";
            $('#'+funcid+"-Search input[type='button']").eq(0).click();

            node.on('click','input[type="button"]',function(){
                $('#'+l.getFormId()).parent().show();
                l.close(2);
            });

            node.on('click','input[type="submit"]',function(){
                $('#'+l.getFormId()).parent().show();
                l.close(2);
                if(!l.isErr){
                    $('#'+l.getFormId()).parent().find('a.close').click()
                }
            });

            node.on('click','a.close ',function(){
                $('#'+l.getFormId()).parent().show();
                l.close(2);
            });
        }


    {:W('Summary/javascript',array('StorecardLockSummary'))}


    </script>


